<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:spring="http://www.springframework.org/tags"
	xmlns:form="http://www.springframework.org/tags/form" version="2.0">
	<jsp:directive.page contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8" session="true" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />
	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><spring:message code="page.register.title" /></title>
</head>
<body>
	<c:import url="SelectLocale.jsp" />
	<hr />
	<spring:message code="adminpage.button.createUser"
		var="buttonCreateUser" />
	<c:if test="${error ne null }">
		<spring:message code="${error}" />
	</c:if>
	<div>
		<table>
			<CAPTION>
				<spring:message code="adminpage.registerform.caption" />
			</CAPTION>
			<br />
			<form:form action="${pageContext.request.contextPath}/createAccount"
				method="post" commandName="registerForm">
				<tr>
					<td><spring:message code="adminpage.user.login" /> :</td>
					<td><form:input path="login" /></td>
					<td><form:errors path="login" cssclass="error"></form:errors></td>
				</tr>
				<tr>
					<td><spring:message code="adminpage.user.passowrd" /> :</td>
					<td><form:input path="password" type="password" /></td>
					<td><form:errors path="password" cssclass="error"></form:errors></td>
				</tr>
				<tr>
					<td><spring:message code="adminpage.user.passowrd" /> :</td>
					<td><form:input type="password" path="repeatPassword" /></td>
					<td><form:errors path="repeatPassword" cssclass="error"></form:errors></td>
				</tr>
				<tr>
					<td><spring:message code="adminpage.customer.telephone" /> :</td>
					<td><form:input path="phone" /></td>
					<td><form:errors path="phone" cssclass="error"></form:errors></td>
				</tr>
				<tr>
					<td><spring:message code="adminpage.customer.email" /> :</td>
					<td><form:input type="email" path="email" /></td>
					<td><form:errors path="email" cssclass="error"></form:errors></td>

				</tr>
				<tr>
					<td id="output"><INPUT type="submit"
						value="${buttonCreateUser}" /></td>
				</tr>
			</form:form>
		</table>
		<br />
		<c:url value="/login" var="ref" />
		<a href="${ref}"> <spring:message
				code="page.register.account.exist" />
		</a>
	</div>
</body>
	</html>
</jsp:root>